package com.gba.mark.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gba.mark.exam.entity.ExamPaper;
import com.gba.mark.exam.entity.ExamQuestions;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ExamPaperMapper extends BaseMapper <ExamPaper>{

//    /*
//查询试卷
// */
//
//    //1、根据group_id查询出question_ids
//
//    //2、根据question_ids查询出questions
//
//
//    @Select("SELECT eq.questions FROM exam_questions eq,\n" +
//        "exam_paper ep WHERE group_id = #{group_id}\n" +
//        " AND question_ids = ep.id"
//               ")
//
//    @Results({
//
//            @Result(property = "id",column = "id"),
//            @Result(property = "group_id",column = "group_id"),
//            @Result(property = "questions",column = "questions"),
//
//    })
//    List<ExamPaper> findPaper(
//
//            @Param("id") Integer id,
//            @Param("group_id") Integer group_id,
//            @Param("question_ids")Integer questions);
//
//
 }
